package top.went.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import top.went.vo.Code;


//@ControllerAdvice
//@ResponseBody
///**
// * 处理服务异常
// */
//public class ServiceExceptionResolver {
//    @ExceptionHandler(ServiceException.class)
//    public Code error(Exception e){
//        e.printStackTrace();
//        return Code.fail(e);
//    }
//}
